wrapping javascript into a CDATA section

good idea so it does not get affected by content changing javascript (like gtranslate)

<script type="text/javascript">
 //<![CDATA[
 jQuery('input#shippingSameBilling').click(function(){
 if(jQuery('input#shippingSameBilling').is(':checked'))
 {
 jQuery('tr.wpsc_shipping_forms').fadeOut(200);
 }
 else
 {
 jQuery('tr.wpsc_shipping_forms').fadeIn(200);
 }
 });
 //]]>
</script>

Comments are closed.